import React from 'react';
import { createBrowserRouter } from 'react-router-dom';
import Dashboard from '../pages/dashboard';
import Editor from '../pages/editor';
import Preview from '../pages/preview';

// 定义应用路由
const router = createBrowserRouter([
  {
    path: '/',
    element: <Dashboard />,
  },
  {
    path: '/editor',
    element: <Editor />,
  },
  {
    path: '/preview',
    element: <Preview />,
  },
]);

export default router;
